//
//  TipsManager.m
//  iOSLib
//
//  Created by gaofeng on 15/11/24.
//  Copyright © 2015年 zyb. All rights reserved.
//

#import "TipsTextManager.h"
#import "ZYBConfigInfo.h"
@implementation TipsTextConfigureModel

@end

@implementation TipsTextModel

@end

@implementation TipsTextManager


+ (void)setupModel:(TipsTextModel *)model forType:(ZYBViewTipsType)type {
    NSString *tipTitle = nil;
    UIImage *image = nil;
    NSString *imageName = nil;
    NSString *buttonTitle = nil;
    switch (type) {
        case ZYBViewTipsTypeLoadError:
        {
            imageName = @"tip_loaderror";
            tipTitle = @"哎~加载出错了~";
            break;
        }
        case ZYBViewTipsTypeNoMessage:
        {
//            imageName = @"tip_no_content";
            imageName = @"tip_contentEmpty";
            tipTitle = @"这里面空空的哦";
            break;
        }
        case ZYBViewTipsTypeNoMessageNoTips:
        {
            imageName = @"tip_contentEmpty";
            break;
        }
            
        case ZYBViewTipsTypeNoMessageForFavoriteComposition:
        {
            imageName = @"tip_contentEmpty";
            tipTitle = @"还未添加任何文章，去添加试试吧";
            break;
        }
        case ZYBViewTipsTypeNetworkError:
        {
            imageName = @"tip_loaderror";
            tipTitle = @"哎~网络断片了~";
            break;
        }
        case ZYBViewTipsTypeQuestionDeleted:
        {
//            imageName = @"tip_deleted";
            imageName = @"tip_contentEmpty";
            tipTitle = @"你的帖子错误，被删除了哦";
            break;
        }
            
        case ZYBViewTipsTypeArticleDeleted:
        {
//            imageName = @"tip_deleted";
            
            imageName = @"tip_contentEmpty";
            tipTitle = @"你的帖子错误，被删除了哦";
            break;
        }
        case ZYBViewTipsTypeQuestionSystemDeleted:
        {
//            imageName = @"tip_baned";
            imageName = @"tip_contentEmpty";
            tipTitle = @"你的帖子错误，被屏蔽了哦";
            break;
        }
            
        case ZYBViewTipsTypeArticleSystemDeleted:
        {
//            imageName = @"tip_baned";
            
            imageName = @"tip_contentEmpty";
            tipTitle = @"你的帖子错误，被屏蔽了哦";
            break;
        }
            
        case ZYBViewTipsTypeNoCompositionResult:
        {
//            imageName = @"tip_no_content";
            imageName = @"tip_contentEmpty";
            tipTitle = @"这里面空空的哦";
            break;
        }
            
        case ZYBViewTipsTypeNoErrorResult:
        {
            imageName = @"tip_contentEmpty";
            tipTitle = @"错题本里是空的哦";
            break;
        }
        case ZYBViewTipsTypeNoTeachers:
        {
//            imageName = @"ask_teacher_noTeachers";
            imageName = @"tip_contentEmpty";
            tipTitle = @"没有找到任何老师哦";
            break;
        }
            
        case ZYBViewTipsTypeNoCoupon:
        {
//            imageName = @"AT_No_Coupons";
            imageName = @"tip_contentEmpty";
            tipTitle = @"暂无优惠券哦";
            break;
        }
        case ZYBViewTipsTypeNoFollowedTeachers:
        {
            
            if (kScreenHeight == 568) {
                imageName = @"AT_Tip_NoFollowingTeachers_small";
            }
            
            if (kScreenHeight == 480) {
                imageName = @"AT_Tip_NoFollowingTeachers_mini";
            }
            
            if (kScreenHeight > 568) {
                imageName = @"AT_Tip_NoFollowingTeachers";
            }
            
            break;
        }
        case ZYBViewTipsTypeDicSearchNoResult: {
//            imageName = @"dictionaryNoResult";
            imageName = @"tip_contentEmpty";
            tipTitle = @"今天没有开放时间，换个时间试试吧";
            break;
        }
        case ZYBViewTipsTypeNoPacks: {
//            imageName = @"AT_MyPackage_NoPackages";
            imageName = @"tip_contentEmpty";
            tipTitle = @"你没有套餐哦，快去开通吧";
            break;
        }
        case ZYBViewTipsTypeNoOneOnOneCourses: {
//            imageName = @"AT_OneOnOne_NoCourses";
            imageName = @"tip_contentEmpty";
            tipTitle = @"还没有约课哦";
            break;
        }
            
        case ZYBViewTipsTypeHighLadderNoFriend:{
//            imageName = @"tip_hl_nofriend";
            imageName = @"tip_contentEmpty";
            tipTitle = @"咦，好孤单 ~ 快去呼朋唤友吧！";
            buttonTitle = @"邀请好友";
            break;
        }
        case ZYBViewTipsTypeENzuowenevallistNoContent:{
//            imageName = @"EnArticleEval_listNoItem_Icon";
            imageName = @"tip_contentEmpty";
            tipTitle = @"没有批改记录哦，快去拍照上传，纠错评分吧";
            break;
        }
            
        case ZYBViewTipsTypeHighLadderSignalSearchNoResult:{
//            imageName = @"tip_nosignalFriend";
            imageName = @"tip_contentEmpty";
            tipTitle = @"咦，木有找到暗号的主人";
            break;
        }
            
        case ZYBViewTipsTypeFeedArticleDelete:
        {
            imageName = @"tip_contentEmpty";
            tipTitle = @"文章不存在";
            break;
        }
        
        default:
            break;
    }
    
    model.title = tipTitle;
    model.image = image;
    model.imageName = imageName;
    model.tipButtonTitle = buttonTitle;
}

+ (TipsTextModel *)tipsModelForType:(ZYBViewTipsType)tipsType {
    TipsTextModel *model = [[TipsTextModel alloc] init];
    model.type = tipsType;
    [self setupModel:model forType:tipsType];
    return model;
}

@end
